package com.rajeshDyadav.array;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;

public class ArrayTest01 {
    public static void main(String[] args) {
	
	int[] a = new int[10];
	a[0] = 2;
	a[1] = 1;
	int[] b = a.clone();
		
	System.out.println( (b instanceof int[]) );
	
	System.out.println(Arrays.equals(a, b));
	Arrays.sort(a);
	System.out.println(Arrays.equals(a, b));
	
	ArrayList<Integer> arr = new ArrayList<Integer>();
	arr.add(3);
	arr.add(2);
	
	System.out.println(arr);
	
	Collections.sort(arr);
    }
}
